<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" />

  <link rel="stylesheet" href="登录动画.css">
  <style>
    .login-enter-active {
      animation: backInDown 3S;
    }
  </style>
</head>

<body>
  <div id="app"></div>
  <template id="root">
    <transition-group name="login" :appear="true">
      <div class="card" v-if="isshow">
        <h3>登录后更精彩</h3>
        <form>
          <input type="text" id="account" name="account" placeholder="账号" />
          <input type="password" id="password" name="password" placeholder="密码" />
          <input type="submit" value="登录" />
        </form>
        <ul>
          <li><a href=" #">注册</a></li>
          <li><a href="#">忘记密码</a></li>
        </ul>
      </div>
    </transition-group>
  </template>
</body>
<script>
  const app = Vue.createApp({
    template: "#root",
    data() {
      return {
        isshow: true
      }
    },

  })
  app.mount("#app")
</script>

</html>